<?php
class MemberModel extends Model {
	//自动验证文章内容
	protected $_validate=array(
		array('username','require','{$mb_form_ele_username_tip}'),
	);
	
	//自动填充内容  addtime
	protected $_auto   =   array(
		array('addtime','time',1,'function'),//add添加的时候自动填充
		array('password','md5',1,'function'),
	);
	
	//得到会员数
	public function getMemberCount(){
		return $this->where("isactive=1")->count("*");	
	}
	
	//得到微信回复数
	public function getReplyLogCount(){
		$log = M("Wxlog");
		return $log->count("*");
	}
}
?>